﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
namespace B2B.Models
{
    public class SP_XoaBaoGia
    {
        public static int xoaBaoGia(int maBaoGia)
        {
            int kq = 0;
            try
            {
                SqlConnection conn = KetNoi.Connection();
                SqlCommand cmd = new SqlCommand("SP_XOABAOGIA", conn);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@MABAOGIA", maBaoGia);
                conn.Open();
                kq = cmd.ExecuteNonQuery();
                conn.Close();
            }
            catch (Exception ex)
            {
                kq = 0;
            }
             return kq;
        }
    }
}